<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>经典轮播图面向对象1120</title>
    </head>
    <style>
        .all {
            width: 1000px;
            height: 350px;
            margin: auto;
            position: relative;
        }
        img {
            position: absolute;
        }
        .img > img:first-of-type {
            z-index: 1;
        }
        .left,
        .right {
            width: 50px;
            height: 80px;
            position: absolute;
            top: 100px;
            z-index: 2;
            cursor: pointer;
        }
        .left:hover,
        .right:hover {
            background-color: rgba(0, 0, 0, 0.2);
        }
        .right {
            right: 40px;
        }
        .left > p,
        .right > p {
            text-align: center;
            font-size: 50px;
            position: absolute;
            top: -55%;
            left: 0;
        }
        .points {
            width: 960px;
            height: 50px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: absolute;
            bottom: 0;
        }
        .point {
            width: 15px;
            height: 15px;
            border: 2px solid #000;
            border-radius: 50%;
        }
    </style>
    <body>
        <div class="all">
            <div class="left"><p class="p-left">&lt;</p></div>
            <div class="img">
                <img src="./img/01.jpeg" alt="" />
                <img src="./img/02.jpeg" alt="" />
                <img src="./img/03.jpeg" alt="" />
                <img src="./img/04.jpeg" alt="" />
            </div>
            <div class="right"><p class="p-right">&gt;</p></div>
            <div class="points">
                <!-- 自动生成圆点的标签格式
                <div class="point"></div> -->
            </div>
        </div>
    </body>
</html>
